{literal}
<script>
function checkeditform() {
	var d = document.editform;
	if(d.email.value == '') {
		alert('Please Enter your e-mail!');
		d.email.focus();
	return false;
	}
	if((d.password.value || d.password2.value ) && d.password.value != d.password2.value) {
		alert('Passwords do not match');
		d.password.focus();
		return false;
	}
	return true;
}
</script>
{/literal}
<div class="MainContent">
<div class="box1 Box1Style2"><span class="Box1Text">Member Area</span></div>
<div class="box2" style="padding:8px;">
<table width=100% border=0 cellspacing=0 cellpadding=0 align="center">
	<tr>
		<td>
		{if $say == 'changed'}
			<b style="color: green">Your info have been
			successfully updated!</b>
			
		{/if}
		<form method="post" name="editform" onsubmit="return checkeditform()">
		<input type="hidden" name="a" value="editprofile"> 
		<input type="hidden" name="action" value="save">
		<table cellspacing="2" cellpadding="2" border="0" width="85%" align="center">
			<tr>
				<th align="left">Username:</th>
				<td align="left"><b>{$userinfo.username}</b></td>
			</tr>

			<tr>
				<th align="left">* E-mail:</th>
				<td align="left">
					<input type="text" name="email" value="{$userinfo.email}" class="inpts_add" size="30"></td>
			</tr>

			<tr>
				<th align="left">Password </th>
				<td align="left">
				<input type="password" name="password" class="inpts_add" size="30"></td>
			</tr>

			<tr>
				<th align="left">Password again:</th>
				<td align="left">
					<input type="password" name="password2" class="inpts_add" size="30">
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td align="left"><input type="submit" value=" Edit " class="sbmt"></td>
			</tr>
		</table>
		</form>
		</td>
	</tr>
</table>
</div>
</div>
